import z from "zod";
import i18n from "@/i18n";

export const ServiceValidateSchema = () =>
  z.object({
    ticket: z.string().min(1, {
      message: i18n.t("Service ticket is required", {
        defaultValue: "Service ticket is required",
      }),
    }),
    service: z.string().min(1, {
      message: i18n.t("Service is required", {
        defaultValue: "Service s required",
      }),
    }),
  });

export type ServiceValidateFormData = z.infer<
  ReturnType<typeof ServiceValidateSchema>
>;
